<?php
  // 连接数据库
  $conn = mysqli_connect("127.0.0.1","root", "", "yukino_fans");
  if(mysqli_connect_errno($conn)) {
      echo "连接 MySQL 失败: ".mysqli_connect_error();
  }
  // 解决中文乱码
  mysqli_set_charset($conn, 'utf8');
?>
